package lib.bone.nepudata.service.impl;

import lib.bone.nepudata.dao.NepuTopicTaskDAO;
import lib.bone.nepudata.domain.entity.NepuTopicTask;
import lib.bone.nepudata.service.NepuTopicTaskService;
import lib.bone.common.core.domain.PageResultDTO;
import lib.bone.common.core.domain.ResponseDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Optional;

@Slf4j
@Service
public class NepuTopicTaskServiceImpl implements NepuTopicTaskService {

    @Autowired
    NepuTopicTaskDAO dao;

    @Override
    public NepuTopicTask saveOne(NepuTopicTask nepuTopicTask) {
        return null;
    }

    @Override
    public NepuTopicTask updateOne(NepuTopicTask nepuTopicTask) {
        return null;
    }

    @Override
    public PageResultDTO<NepuTopicTask> getAll(Pageable pageable, Example<NepuTopicTask> example) {
        return null;
    }

    @Override
    public ResponseDTO deleteById(Long id) {
        return null;
    }

    @Override
    public Optional<NepuTopicTask> getById(Long id) {
        return Optional.empty();
    }

    @Override
    public ResponseDTO saveList(List<NepuTopicTask> tasks) {
        return ResponseDTO.succData(dao.saveAll(tasks));
    }
}
